/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.lvyh.lightframe.cloud.common.model;

import lombok.Data;

/**
 * 客户端信息
 */
@Data
public class SysOauthClient {

    private String clientId;//客户端ID

    private String clientName;//应用名称

    private String clientSecret;//客户端密钥

    private String clientSecretStr;

    private String resourceIds;//资源id列表

    private String scope = "all";//域

    private String authorizedGrantTypes = "authorization_code,password,refresh_token,client_credentials";//授权方式

    private String webServerRedirectUri;//回调地址

    private String authorities = "";//权限列表

    private Integer accessTokenValidity;//认证令牌时效

    private Integer refreshTokenValidity;//刷新令牌时效

    private String additionalInformation = "{}";//扩展信息

    private String autoapprove = "true";//是否自动放行

    private Integer accessTokenValiditySeconds = 18000;//@TableField(value = "access_token_validity")

    private Integer refreshTokenValiditySeconds = 28800; //@TableField(value = "refresh_token_validity")

    private Boolean supportIdToken = true;//是否支持id_token

    private Integer idTokenValiditySeconds = 60;//@TableField(value = "id_token_validity")-id_token有效时间(s)

}
